import { _decorator, Component, Node } from 'cc';
import { Singleton } from '../comm/Singleton';
const { ccclass, property } = _decorator;

@ccclass('GameStartCtrl')
export class GameStartCtrl extends Singleton<GameStartCtrl> {
    currentLevel: number = 0;

    public switchLevel(op: number){
        this.currentLevel += op;
        if(this.currentLevel < 0) this.currentLevel = 0;
        if(this.currentLevel > 2) this.currentLevel = 2;
    }
}


